From: Ronny Hegewald Date: Tue, 13 Nov 2012 11:19:17 +0000 (+0000) Subject: libxl: fix vfb related assertion problem when starting pv-domU X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7659 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=9b223b2f098261f3d483c3447d22be5d7069c314;p=xen.git libxl: fix vfb related assertion problem when starting pv-domU When a config-file for a pv-domU has a vfb section with a vnc=0 option then a "xl create" for that domU crashes with the message xl: libxl.c:252: libxl_defbool_val: Assertion `!libxl_defbool_is_default(db)' failed. and the domU hangs early in the start. This patch fixes the cause of the assertion and let the domU start normally. This problem exists since xen 4.2. Signed-off-by: Ronny Hegewald Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index be457f4765..acb240a1a3 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -3186,6 +3186,8 @@ int libxl__device_vfb_setdefault(libxl__gc *gc, libxl_device_vfb *vfb) } libxl_defbool_setdefault(&vfb->vnc.findunused, true); + } else { + libxl_defbool_setdefault(&vfb->vnc.findunused, false); } libxl_defbool_setdefault(&vfb->sdl.enable, false);